#ifndef HW_MOTOR_CLASS_H
#define HW_MOTOR_CLASS_H

class HW_Motor_Class
{
public:
    static HW_Motor_Class* getHandler()
    {
        if(handler == nullptr)
            handler = new HW_Motor_Class();
        return handler;
    }

    void set_motor_speed(int speed); // 0-100

    void running();
    void stopmotor();// stop motor thread

private:
    static HW_Motor_Class *handler;
    HW_Motor_Class();

    int threadstatus;

};

#endif // HW_MOTOR_CLASS_H
